package com.bailiban.spit.dao;

import com.bailiban.spit.entity.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author zhulang
 * @Classname SpitDao
 * @Description SpitDao
 */
@Repository
public interface SpitDao extends MongoRepository<Spit, String> {
    Page<Spit> findByParentid(String parentid, Pageable pageable);
}
